import { createApp } from 'vue'
import './style.css'
import 'element-plus/dist/index.css';// element plus样式
import * as ElIcons from '@element-plus/icons-vue' //element plus图标
import App from './App.vue'
import router from './router'
import store from './store/index'
import locale  from 'element-plus/es/locale/lang/zh-cn'
import ElementPlus from 'element-plus'
import VueDOMPurifyHTML from 'vue-dompurify-html'
import './router/route-index'
const app = createApp(App)
for (const name in ElIcons) {
    app.component(name, (ElIcons as any)[name]);
  }
app.use(store).use(router).use(ElementPlus, {locale}).use(VueDOMPurifyHTML).mount('#app')
